let Mian = import("@/views/Mian");

export default [
  {
    path: "Operation", //运营管理
    name: "Operation",
    meta: {
      title: "运营管理",
      icon: "icon-shuzhuangtu",
    },
    
    component: Mian,
    children: [
      {
        path: "order", //订单管理
        name: "order",
        meta: {
          title: "订单管理",
        },
        component: () => import("@/views/Operation/order"),
      },
      {
        path: "Commentary", //评论管理
        name: "Commentary",
        meta: {
          title: "评论管理",
        },
        component: () => import("@/views/Operation/Commentary"),
      },
      {
        path: "Freight", //运费管理
        name: "Freight ",
        meta: {
          title: "运费管理",
        },
        component: () => import("@/views/Operation/Freight"),
      },
    ],
  },
  {
    path: "Commodities", //商品管理
    name: "Commodities",
    meta: {
      title: "商品管理",
      icon: "icon-gouwuche",
    },
    component: Mian,
    children: [
      {
        path: "Something",
        name: "Something",
        component: () => import("@/views/Commodities/Something"),
        meta: {
          title: "商品管理", 
        },
      },
      {       
        path: "commod",
        name:"commod",
        component: () =>import("@/views/Commodities/Commoditiesadd"),
        meta: {
          parent:"/Home/Commodities/Something",
          hidden:true,
          title: "创建页面",
          keepAlive:true

        },
      },
      {       
        path: "editor",
        name:"editor",
        component: () =>import("@/views/Commodities/editor"),
        meta: {
          parent:"/Home/Commodities/Something",
          hidden:true,
          title: "编辑页面",
          keepAlive:true

        },
      },
      {
        path: "Group",
        name: "Group",
        component: () => import("@/views/Commodities/Group"),
        meta: {
          title: "团购商品",
        },
      },

      {
        path: "Category",
        name: "Category",
        component: () => import("@/views/Commodities/Category"),
        meta: {
          title: "类目管理",
        },
      },
    ],
  },
  {
    path: "Popularizes", //推广管理
    name: "Popularizes",
    meta: {
      title: "推广管理",
      icon: "icon-tuiguangtongji",
    },
    component: Mian,
    children: [
      {
        path: "Advertising",
        name: "Advertising",
        component: () => import("@/views/Popularizes/Advertising"),
        meta: {
          title: "广告管理",
        },
      },
      {
        path: "Coupons",
        name: "Coupons",
        component: () => import("@/views/Popularizes/Coupons"),
        meta: {
          title: "优惠券管理",
        },
      },
    ],
  },
  {
    path: "Usersystem", //用户管理
    name: "Usersystem",
    meta: {
      title: "用户管理",
      icon: "icon-yonghu",
    },
    component: Mian,
    children: [
      {
        path: "Member",
        name: "Member",
        component: () => import("@/views/Usersystem/Member"),
        meta: {
          title: "会员管理",
          icon: "",
        },
      },
      {
        path: "Address",
        name: "Address",
        component: () => import("@/views/Usersystem/Address"),
        meta: {
          title: "地址管理",
        },
      },
    ],
  },
  {
    path: "System", //系统管理
    name: "System",
    meta: {
      title: "系统管理",
      icon: "icon-xitong",
    },
    component: Mian,
    children: [
      {
        path: "Systems",
        name: "Systems",
        component: () => import("@/views/System/Systems"),
        meta: {
          title: "系统配置",
        },
      },
      {
        path: "Caretaker",
        name: "Caretaker",
        component: () => import("@/views/System/Caretaker"),
        meta: {
          title: "管理员",
        },
      },
      {
        path: "Logbook",
        name: "Logbook",
        component: () => import("@/views/System/Logbook"),
        meta: {
          title: "操作日志",
        },
      },
      {
        path: "Roles",
        name: "Roles",
        component: () => import("@/views/System/Roles"),
        meta: {
          title: "角色管理",
        },
      }
    ],
  },
];
